<%@ Page Inherits="System.Web.Mvc.ViewPage<Sedodream.Web.ViewHelper.Models.AddContactModel>"
    Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Title="" %>

<%@ Import Namespace="Sedodream.Web.Common.View" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Add Contact New
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Add Contact New</h2>
    
    <%= Html.ValidationSummary("Errors exist") %>
    
    <ol>
      <li>
        <span class="success-message"><%= Model.SuccessMessage %></span>
      </li>
    </ol>
    <% using (Html.BeginForm())
        { %>
        <fieldset>
            <legend>Account Information</legend>
            <ol>
                <% Html.NewText("FirstName", "First name"); %>
                <% Html.NewText("LastName", "Last name"); %>
                <% Html.NewText("Email", "Email"); %>
                <% Html.NewText("Phone", "Phone"); %>
                <% Html.NewRadioButtonGroup("Gender", Model.GenderList); %>
                
                <li>
                    <input type="submit" value="Add contact" />
                </li>
            </ol>
        </fieldset>
    <% } %>
</asp:Content>
